package net.maku.module.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import net.maku.framework.common.utils.DateUtils;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@Schema(description = "网络轮播图")
public class AgCarouselVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "文件id")
    private Long id;

    @Schema(description = "文件名称")
    private String name;

    @Schema(description = "文件路径")
    private String url;

    @Schema(description = "文件大小")
    private Long size;

    @Schema(description = "存储平台")
    private String platform;

    @Schema(description = "租户id")
    private Long tenantId;

    @Schema(description = "文件类型")
    private String type;

    @Schema(description = "网站id")
    private Integer websiteId;

    @Schema(description = "创建者")
    private Long creator;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createTime;

    @Schema(description = "创建人名字")
    private String createdByName;
}
